TakCertificateStoreImpl

class TakCertificateStoreImpl(dataDir: File = File(desktopDataDir())) : TakCertificateStore(source)

File-backed encrypted store for the local TAK server's TLS material on JVM/Desktop.

The material is one AES-256-GCM .enc file under $MESHTASTIC_DATA_DIR/tak_certs/ (default: ~/.meshtastic/tak_certs/); see DesktopKeystoreCipher for the key handling.

Constructors

Link copied to clipboard
constructor(dataDir: File = File(desktopDataDir()))

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun load(): TakCertificateMaterial?
Link copied to clipboard
open override fun save(material: TakCertificateMaterial)

Writes through a temp file and an atomic rename, so an interrupted save leaves the previous identity intact rather than a truncated file that would be read as "no material" and silently replaced on next start.